package com.spark.tags;

import java.util.Map;

import com.spark.core.SparkContext;

public class Separator extends ViewComponent {
	private static final String DEFAULT_TEMPLATES = "separator.ftl";
	
	public String getTemplate() {
		return DEFAULT_TEMPLATES;
	}
	
	@SuppressWarnings("unchecked")
	protected String build(SparkContext context){
		Map map = context.getMap();
		StringBuilder sb = new StringBuilder();
		sb.append("<DIV class=\"sep\" style=\"").append(get(map,"style")).append("\"></DIV>\r");
		return sb.toString();
	}
}
